package com.errorfinding.common.webSocket.config;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

// 开启aop
@Aspect
@Component
public class AopConfig {


    // aop 无法代理 websocket
 /*   @Pointcut(value = "execution(* com.errorfinding.common.webSocket.admin.MyWebSocket.onOpen(..))")
    public void  op(){

    }

    @Before(value = "op()")
    public void before(){
        System.out.println("---------------------------通知---------------");
    }*/
}
